#!/bin/sh
dire="/usr/share/wsim-client"
Architecture_dir="x86_64-linux-gnu"
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
mkdir -p $dire #在/usr/share/中新建目录存放程序
mv -f /application $dire/ #将解压到根目录的程序移动到新建好的目录中

ln -s $dire/application/lib/wsim/libwebsocket_if.so.0.3.2 /usr/lib/$Architecture_dir/libwebsocket_if.so.0
ln -s $dire/application/lib/wsim/libwebsocket_if.so.0.3.2 /usr/lib/$Architecture_dir/libwebsocket_if.so
cd $dire/application/  #进入程序目录
ln -s $dire/application/qtwebim /usr/bin/qtwebim 
ln -s $dire/application/wsclient /usr/bin/wsclient
cp -rf $dire/application/qtwebim.png /usr/share/pixmaps/      
cp -rf $dire/application/wsim-client.desktop /usr/share/applications/ 
echo "Ok!"
